#include "List.h"


void test01()
{
	LTNode* plist = LTInit();;
	
	LTPushBack(plist, 1);

	//LTPushBack(plist, 1);
    //LTPushBack(plist, 2);
    //LTPushBack(plist, 3);
    //LTPushBack(plist, 4);
	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);

	LTPushBack(plist, 4);

	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);

	LTNode* pos = LTFind(plist, 2);

	LTInsert(pos, 100);
	LTPrint(plist);

	LTErase(pos);
	LTPrint(plist);

	//LTDestroy(&plist);
	LTDestroy(plist);
	plist = NULL;

}
int main()
{
	test01();
	return 0;
}


